package com.feicheng.iou.service;

import com.feicheng.iou.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feicheng.iou.pojo.UpdateRolePermissionPOJO;
import com.feicheng.iou.pojo.login.PermissionListPOJO;
import com.feicheng.iou.result.ResultInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tianchunlei
 * @since 2021-06-28
 */
public interface PermissionService extends IService<Permission> {
    /**
     * @Author wuweinan
     * @Description 格式化并且封装用户的权限列表
     * @Date 2021-7-23 10:45
     * @param permissionIds
     * @return  List<PermissionListPOJO>
     */
    List<PermissionListPOJO> selectPermissionsList(List<Integer> permissionIds,Boolean showAllFlg);

    /**
     * @Author wuweinan
     * @Description 按权限分级嵌套查询所有权限
     * @Date 2021-7-23 10:45
     * @param
     * @return  ResultInfo
     */
    ResultInfo selectAllPermission();

    /**
     * @Author wuweinan
     * @Description 查询所有的权限
     * @Date 2021-7-23 10:45
     * @param
     * @return  ResultInfo
     */
    ResultInfo selectPermissionList();


}
